package User;

import Operate.*;

import java.util.Scanner;

public class Administrator extends User{

    public Administrator() {
    }

    public Administrator(String name) {
        super(name);
        this.ioOperate = new IOOperate[]{
                new ExitOperate(),
                new FindOperate(),
                new AddOperate(),
                new DelOperate(),
                new DisplayOperate()
        };
    }

    @Override
    public int menu() {
        System.out.println("hello " + getName() + " 欢迎来到图书管理联系");
        System.out.println("==================================");
        System.out.println("1.Find");
        System.out.println("2.Add");
        System.out.println("3.Del");
        System.out.println("4.Display");
        System.out.println("0.Exit");
        System.out.println("==================================");
        System.out.println("your choice:");
        Scanner scanner = new Scanner(System.in);
        return scanner.nextInt();
    }
}
